<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="top.fleamarket.domain.User"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<HTML>
<HEAD>
	<meta http-equiv="Content-Language" content="zh-cn">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<LINK href="${pageContext.request.contextPath}/admin/css/Style.css" type="text/css" rel="stylesheet">
	<title>校园二手交易平台</title>
	<link rel="stylesheet" href="${pageContext.request.contextPath }/client/css/main.css" type="text/css" />
	<script type="text/javascript">
	//退出确认框
	function confirm_logout() {   
	    var msg = "您确定要退出登录吗？";   
	    if (confirm(msg)==true){   
	    return true;   
	    }else{   
	    return false;   
	    }   
	} 
	function myFunction() {
		  alert("发布成功");
		}
	</script>
</HEAD>
<body class="main">

<jsp:include page="head.jsp" />
	<div style="text-align:left; margin:5px 10px 5px 170px;float:left;width:1518.4px;">
		<a href="${pageContext.request.contextPath }/index.jsp">首页</a>
						&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="${pageContext.request.contextPath }/client/myAccount.jsp">我的帐户</a>&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;发布商品
	</div>
	<div class="account1" style="width:220px;box-shadow:0 26px 26px rgb(0 0 0 / 50%);border-radius:20px;">
		<div style="width:220px;height:50px;padding-top:30px;margin:auto;background:(0,0,0,0);">
			<a href="${pageContext.request.contextPath }/client/modifyuserinfo.jsp">用户信息修改</a>
		</div>
		<div style="width:220px;height:50px;padding-top:30px;margin:auto;background:(0,0,0,0)">
			<a href="${pageContext.request.contextPath}/findOrderByUser">订单查询</a>
		</div>
 				<div style="width:220px;height:50px;padding-top:30px;margin:auto;background:rgba(0,0,0,0)">
				<a href="${pageContext.request.contextPath }/client/add.jsp">发布商品</a> 
				</div>
		<div style="width:220px;height:50px;padding-top:30px;margin:auto;background:rgba(0,0,0,0)">
			<a href="${pageContext.request.contextPath}/logout" onclick="javascript:return confirm_logout()">用户退出</a>
		</div>	
	</div>
	
	<div class="account2" style="width:1000px;height:auto;float:left;margin-top:0px;background:white;box-shadow:0 26px 26px rgb(0 0 0 / 50%);margin-bottom:50px;padding-bottom:30px;border-radius:20px">
	<form id="userAction_save_do" name="Form1"
		action="${pageContext.request.contextPath}/clientAddProduct"  method="post"
		enctype="multipart/form-data">
		&nbsp;
		<div style="height:50px;font-size:20px;margin:auto;padding:auto">
			添加商品
		</div>
		<div style="font-size:20px;margin-bottom:30px">
			商品名称：
			<input type="text" name="name" class="" style="border-radius:20px;background:rgba(0,0,0,0.04);outline:0">
		</div>
		<div style="font-size:20px;margin-bottom:30px">
			商品价格：
			<input type="text" name="price" class="" style="border-radius:20px;background:rgba(0,0,0,0.04);outline:0">
		</div>
		<div style="font-size:20px;margin-bottom:30px">
			商品数量：
			<input type="text" name="pnum" class="" style="border-radius:20px;background:rgba(0,0,0,0.04);outline:0">
		</div>
		<div style="font-size:20px;margin-bottom:30px">
			商品类别：
			<select name="category" id="category" style="width:260px;border-radius:20px;height:30px;background:rgba(0,0,0,0.04)">
						<option value="" selected="selected">--选择商品类加--</option>
						<option value="文学">图书</option>
						<option value="生活">电子</option>
						<option value="计算机">日用品</option>
						<option value="外语">其他</option>
				</select>
		</div>
		<div style="font-size:20px;margin-bottom:30px">
			商品图片：
			<input type="file" name="upload" class="" style="width:260px;border-radius:20px;background:rgba(0,0,0,0.04);font-size:15px">
		</div>
		<div style="font-size:20px;margin-bottom:30px;text-align:left;padding-left:317px">
			商品描述：
		</div>
		<div>
			<textarea name="description" cols="20" rows="6" style="WIDTH: 40%;margin-bottom:30px"></textarea>
		</div>
		<div>
			<input type="submit" class="button_ok" onclick="myFunction()" value="确定" style="border-radius:20px;background:#ef5f66;cursor:pointer;height:30px;width:50px">	
					<FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
					<input type="reset" value="重置" class="button_cancel" style="border-radius:20px;background:#ef5f66;cursor:pointer;height:30px;width:50px">					
					<FONT face="宋体">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					</FONT> 
					<INPUT class="button_ok" type="button" onclick="history.go(-1)" value="返回"  style="border-radius:20px;background:#ef5f66;cursor:pointer;height:30px;width:50px"/>
					<span id="Label1"></span>
		</div>
	</form>
	</div>

	<jsp:include page="foot.jsp" />
</body>
</HTML>